package com.moli.iov.down.command.design.command.param.result.impl;

import com.moli.iov.down.model.dto.req.VehicleParamDto;
import com.moli.iov.down.command.codec.decode.bean.extend.QueryResExtendBean;
import com.moli.iov.down.command.design.command.param.result.ParamQueryResultCommand;

/**
 * <p>
 *  终端型号
 * </p>
 *
 * @author: zql
 * @Date: 2019/4/26 18:09
 */
public class TerminalModelCommand implements ParamQueryResultCommand {

    /**
     * 终端型号
     * @param vehicleParamDto
     * @param qreb
     * @return
     */
    @Override
    public VehicleParamDto execute(VehicleParamDto vehicleParamDto, QueryResExtendBean qreb) {
        vehicleParamDto.setDeviceModel(qreb.getValue());
        return vehicleParamDto;
    }
}
